package com.tianji.chat.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

@Data
@ApiModel(description = "互动任务信息")
public class TaskDTO {
    @ApiModelProperty("大模型使用的知识文件id，默认0表示不使用知识直接提问")
    private Long courseId=0L;

    @ApiModelProperty("标题")
    @NotNull(message = "标题不能为空")
    @Length(min = 1, max = 254, message = "标题长度太长")
    private String title;

    @ApiModelProperty("任务描述")
    @NotNull(message = "描述不能为空")
    private String description;

    @ApiModelProperty("是否匿名使用")
    private Boolean anonymity;
}
